//
//  YJ_userInfo.m
//  YouJoin
//
//  Created by MacBookPro on 15/11/13.
//  Copyright © 2015年 MacBookPro. All rights reserved.
//

#import "YJ_userInfo.h"

@interface YJ_userInfo()

@end


@implementation YJ_userInfo

-(void)setUserInfo:(YJ_userInfo *)userInfo{
    self.userEmail = userInfo.userEmail;
    self.userID = userInfo.userID;
    self.username = userInfo.username;
    self.result = userInfo.result;
}

+(instancetype)initWithDict:(NSDictionary *)dict{
    YJ_userInfo *userInfo = [[YJ_userInfo alloc]init];
    userInfo.userID = [dict valueForKey:@"id"];
    userInfo.userEmail = [dict valueForKey:@"email"];
    userInfo.username = [dict valueForKey:@"username"];
    userInfo.result = [dict valueForKey:@"result"];
    return userInfo;
}

-(NSString *)description{
    NSString *print = [NSString stringWithFormat:@"userid:%@,useremail:%@,username:%@,result:%@",self.userID,self.userEmail,self.username,self.result];
    return print;
}
@end
